package day10.homework;

/**
 * 犬科类
 */
public class Canidae extends Animal{
    /** 狗 */
    private String dog;
    /** 狼 */
    private String wolf;
    public Canidae(){

    }
    public Canidae(String dog,String wolf){
        this.dog = dog;
        this.wolf = wolf;
    }
    public void varieties1(){
        System.out.println("犬科有：" + this.dog + wolf);
    }
    public String getDog(){
        return dog;
    }
    public void setDog(String dog){
        this.dog = dog;
    }
    public String getWolf(){
        return wolf;
    }
    public void setWolf(String wolf){
        this.wolf = wolf;
    }

    public static void main(String[] args) {
        Wolf0 wolf0 = new Wolf0("北极狼","草原狼","森林狼");
        wolf0.life();
        Dog0 dog0 = new Dog0("宠物犬","警犬");
        dog0.work();
    }
}
